package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("ap_user")
@ApiModel
public class ApUser implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty
    private Integer id;
    /**
     * 密码加盐
     */
    @ApiModelProperty
    @TableField(value = "salt")
    private String salt;
    /**
     * 用户名
     */
    @ApiModelProperty
    @TableField(value = "name")
    private String name;
    /**
     * 用户密码
     */
    @ApiModelProperty
    @TableField(value = "password")
    private String password;
    /**
     * 登录手机号
     */
    @ApiModelProperty
    @TableField(value = "phone")
    private String phone;
    /**
     * 用户头像
     */
    @ApiModelProperty
    @TableField(value = "image")
    private String image;
    /**
     * 用户性别
     * 0 男
     * 1 女
     * 2 未知
     */
    @ApiModelProperty
    @TableField(value = "sex")
    private Integer sex;
    /**
     * 0 是
     * 1 否
     */
    @ApiModelProperty
    @TableField(value = "is_certification")
    private Integer isCertification;
    /**
     * 是否身份认证
     */
    @ApiModelProperty
    @TableField(value = "is_identity_authentication")
    private Integer isIdentityAuthentication;
    /**
     * 0 正常
     * 1 锁定
     */
    @ApiModelProperty
    @TableField(value = "status")
    private Integer status;
    /**
     * 0 普通用户
     * 1 自媒体人
     * 2 大V
     */
    @ApiModelProperty
    @TableField(value = "flag")
    private Integer flag;
    /**
     * 注册时间
     */
    @ApiModelProperty
    @TableField(value = "created_time")
    private Date createdTime;


}
